@charset "UTF-8";

/* ==================== 需要添加到 Main.jsp 的 <style> 标签中 ==================== */

/* 预览模态框增强 */
.print-preview-modal {
    z-index: 2500;
    background: rgba(0, 0, 0, 0.8);
}

.print-preview-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 打印设置工具栏样式 */
.print-settings-toolbar {
    background: linear-gradient(135deg, #3a7bd5 0%, #2c5aa0 100%);
    padding: 15px 20px;
    border-bottom: 3px solid #1e40af;
    color: white;
}

.print-settings-row {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.print-setting-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.print-setting-group label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    font-size: 13px;
}

.print-setting-group select,
.print-setting-group input {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    min-width: 80px;
}

.print-setting-group .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 12px;
    padding: 6px 12px;
}

.print-setting-group .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 预览容器样式 - 🔧 增加高度 */
.cards-preview-container {
    background: #ffffff;
    padding: 20px;
    margin: 0;
    border-radius: 0;
    max-height: 68vh; /* 🔧 略微减少高度避免溢出 */
    overflow-y: hidden; /* 🔧 隐藏滚动条：auto -> hidden */
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.cards-preview-container.landscape {
    padding: 15px 30px;
}

/* 预览页面样式 */
.preview-page {
    background: white;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.preview-page:last-child {
    margin-bottom: 0;
}

/* 页面头部 */
.preview-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 3px solid #3a7bd5;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: -20px -20px 20px -20px;
    padding: 15px 20px;
}

.page-title {
    font-size: 18px;
    font-weight: bold;
    color: #3a7bd5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-title::before {
    content: '🏢';
    font-size: 20px;
}

.page-info {
    font-size: 14px;
    color: #6b7280;
    background: white;
    padding: 4px 12px;
    border-radius: 15px;
    border: 1px solid #d1d5db;
}

.print-date {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

/* 名片网格布局 - 🔧 增加间距和高度 */
.preview-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 25px; /* 🔧 增加间距：20px -> 25px */
    min-height: 600px; /* 🔧 增加最小高度：500px -> 600px */
}

.preview-cards-grid[data-cards-per-row="2"] .preview-cards-row {
    grid-template-columns: repeat(2, 1fr);
}

.preview-cards-grid[data-cards-per-row="3"] .preview-cards-row {
    grid-template-columns: repeat(3, 1fr);
}

.preview-cards-grid[data-cards-per-row="4"] .preview-cards-row {
    grid-template-columns: repeat(4, 1fr);
}

.preview-cards-row {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}

/* 🔧 增强的名片样式 - 关键修改 */
.preview-business-card {
    width: 100%;
    height: 180px; /* 🔧 增加高度：140px -> 180px */
    border: 2px solid #3a7bd5;
    border-radius: 12px;
    padding: 14px; /* 🔧 增加内边距：12px -> 14px */
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 6px 20px rgba(58, 123, 213, 0.15);
    position: relative;
    overflow: hidden;
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-business-card:hover {
    transform: translateY(-2px) rotate(1deg);
    box-shadow: 0 12px 30px rgba(58, 123, 213, 0.25);
}

.preview-business-card:nth-child(even):hover {
    transform: translateY(-2px) rotate(-1deg);
}

/* 名片装饰元素 */
.card-decoration-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff, #3a7bd5);
}

.card-decoration-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0, #3a7bd5, #e2e8f0);
}

/* 🔧 名片头部信息 - 增加字体和间距 */
.preview-card-header {
    margin-bottom: 10px; /* 🔧 增加间距：8px -> 10px */
    position: relative;
}

.preview-card-name {
    font-size: 18px; /* 🔧 增加字体：16px -> 18px */
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 4px; /* 🔧 增加间距：3px -> 4px */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.preview-card-title {
    font-size: 12px; /* 🔧 增加字体：11px -> 12px */
    color: #6b7280;
    font-style: italic;
    background: #f1f5f9;
    padding: 3px 8px; /* 🔧 增加内边距：2px 6px -> 3px 8px */
    border-radius: 8px;
    display: inline-block;
    line-height: 1.3;
}

/* 分隔线 */
.card-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3a7bd5, transparent);
    margin: 6px 0;
}

/* 🔧 公司信息 - 增加字体和间距 */
.preview-card-company {
    font-size: 14px; /* 🔧 增加字体：12px -> 14px */
    color: #3a7bd5;
    font-weight: 600;
    margin-bottom: 10px; /* 🔧 增加间距：8px -> 10px */
    display: flex;
    align-items: center;
    gap: 8px; /* 🔧 增加间距：6px -> 8px */
    line-height: 1.3;
}

.company-icon {
    font-size: 16px; /* 🔧 增加字体：14px -> 16px */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* 🔧 联系信息 - 增加字体和间距 */
.preview-card-contact {
    font-size: 11px; /* 🔧 增加字体：9px -> 11px */
    line-height: 1.5; /* 🔧 增加行高：1.4 -> 1.5 */
    color: #4b5563;
}

.preview-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px; /* 🔧 增加间距：3px -> 4px */
    gap: 8px; /* 🔧 增加间距：6px -> 8px */
}

.contact-icon {
    width: 16px; /* 🔧 增加宽度：14px -> 16px */
    font-size: 11px; /* 🔧 增加字体：9px -> 11px */
    text-align: center;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

/* 🔧 性别标识 - 调整位置和大小 */
.preview-card-gender {
    position: absolute;
    top: 14px; /* 🔧 调整位置：12px -> 14px */
    right: 14px; /* 🔧 调整位置：12px -> 14px */
}

.gender-badge {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #475569;
    padding: 3px 8px; /* 🔧 增加内边距：2px 6px -> 3px 8px */
    border-radius: 10px; /* 🔧 增加圆角：8px -> 10px */
    font-size: 9px; /* 🔧 增加字体：8px -> 9px */
    font-weight: bold;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 名片编号 */
.card-number {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 7px;
    color: #9ca3af;
    font-family: 'Courier New', monospace;
    opacity: 0.7;
}

/* 空位占位符 */
.empty-placeholder {
    border: 2px dashed #d1d5db !important;
    background: #f9fafb !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 12px;
    font-style: italic;
}

.empty-placeholder::before {
    content: '空位';
    opacity: 0.5;
}

/* 页面底部 */
.preview-page-footer {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #9ca3af;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.footer-center {
    font-weight: 600;
    color: #6b7280;
}

/* 页面分隔符 */
.page-separator {
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        #e5e7eb,
        #e5e7eb 10px,
        transparent 10px,
        transparent 20px
    );
    margin: 20px 0;
    border-radius: 2px;
}

/* 预览统计信息 */
.preview-stats {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid #d1d5db;
    font-size: 13px;
    color: #4b5563;
}

.preview-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-stats i {
    color: #3a7bd5;
}

/* 按钮增强样式 */
.print-enhanced-btn {
    background: linear-gradient(135deg, #3a7bd5 0%, #2563eb 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.print-enhanced-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.print-enhanced-btn:hover::before {
    left: 100%;
}

.print-enhanced-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* 🔧 响应式调整 - 增加移动端高度 */
@media (max-width: 768px) {
    .print-settings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .print-setting-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .preview-cards-grid[data-cards-per-row="4"] .preview-cards-row,
    .preview-cards-grid[data-cards-per-row="3"] .preview-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .preview-business-card {
        height: 160px; /* 🔧 增加高度：120px -> 160px */
        font-size: 11px; /* 🔧 增加字体：10px -> 11px */
    }
    
    .preview-stats {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .preview-cards-row {
        grid-template-columns: 1fr;
    }
    
    .preview-business-card {
        height: 140px; /* 🔧 增加高度：100px -> 140px */
    }
    
    .preview-page-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* 滚动条美化 */
.cards-preview-container::-webkit-scrollbar {
    width: 10px;
}

.cards-preview-container::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    border-radius: 5px;
}

.cards-preview-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3a7bd5, #2563eb);
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

.cards-preview-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

/* 模态框动画 */
@keyframes previewModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.print-preview-modal .modal-content {
    animation: previewModalFadeIn 0.4s ease;
}

/* 名片悬停效果 */
.preview-business-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.preview-business-card:hover::after {
    opacity: 1;
}

/* ==================== 共享给我的内容模态框样式 ==================== */
.accessible-share-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: slideInUp 0.3s ease;
}

.accessible-share-item:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-3px);
    border-color: #3b82f6;
}

.accessible-share-item:nth-child(even) {
    animation-delay: 0.1s;
}

.accessible-share-item:nth-child(3n) {
    animation-delay: 0.2s;
}

/* 共享项头部 */
.share-item-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e5e7eb;
    gap: 15px;
}

.share-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.share-icon-wrapper i {
    font-size: 18px;
}

.share-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.share-resource-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.3;
}

.share-type-badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

/* 权限徽章样式 */
.share-permission-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.share-permission-badge.read-only {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-color: #f59e0b;
}

.share-permission-badge.editable {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-color: #10b981;
}

.share-permission-badge i {
    font-size: 10px;
}

/* 共享项详情 */
.share-item-details {
    padding: 16px 20px;
}

.share-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.share-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.share-detail-item i {
    width: 16px;
    color: #6b7280;
    font-size: 12px;
}

.share-detail-item .label {
    font-weight: 500;
    color: #6b7280;
    font-size: 13px;
    min-width: 70px;
}

.share-detail-item .value {
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

/* 共享项操作按钮 */
.share-item-actions {
    padding: 12px 20px 16px;
    display: flex;
    justify-content: flex-end;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.btn-access {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-access:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-access i {
    font-size: 12px;
}

/* ==================== 共享文件夹样式优化 ==================== */
.shared-folder {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    color: white !important;
    border: 2px solid #e65100 !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3) !important;
    transform: translateY(-2px);
}

.shared-folder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shared-folder:hover::before {
    opacity: 1;
}

.shared-folder:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 8px 30px rgba(255, 152, 0, 0.4) !important;
}

/* ==================== 空状态样式优化 ==================== */
.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-style: italic;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    margin: 20px 0;
    position: relative;
}

.empty-message::before {
    content: '📂';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

/* ==================== 共享模式通知栏优化 ==================== */
.shared-mode-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #fef3c7 100%) !important;
    border: 1px solid #f59e0b !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    color: #92400e !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1) !important;
}

.shared-mode-notice i {
    font-size: 16px;
    color: #f59e0b;
}

/* ==================== 退出共享模式按钮优化 ==================== */
#exitSharedBtn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

#exitSharedBtn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
}

/* ==================== 加载状态优化 ==================== */
.loading-shares {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
    gap: 16px;
}

.loading-shares i {
    font-size: 36px;
    color: #3b82f6;
    animation: spin 1s linear infinite;
}

.loading-shares .loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
}

/* ==================== 共享统计信息样式 ==================== */
.share-stats {
    background: linear-gradient(135deg, #e0f2fe, #b3e5fc);
    border: 1px solid #0288d1;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #01579b;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-stats i {
    color: #0288d1;
}

/* ==================== 动画效果 ==================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
    .share-detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .share-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .share-permission-badge {
        align-self: flex-end;
    }
    
    .share-main-info {
        width: 100%;
    }
    
    .share-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .share-icon-wrapper i {
        font-size: 16px;
    }
    
    .share-resource-name {
        font-size: 15px;
    }
    
    .share-permission-badge {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .accessible-share-item {
        margin-bottom: 12px;
    }
    
    .share-item-header {
        padding: 12px 16px;
    }
    
    .share-item-details {
        padding: 12px 16px;
    }
    
    .share-item-actions {
        padding: 8px 16px 12px;
    }
    
    .btn-access {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ==================== 优化原有样式覆盖 ==================== */
/* 覆盖原有的accessible-share-item样式 */
.accessible-share-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.accessible-share-item:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-3px) !important;
    border-color: #3b82f6 !important;
}

/* 确保样式优先级 */
.share-item-header {
    display: flex !important;
    align-items: center !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border-bottom: 1px solid #e5e7eb !important;
    gap: 15px !important;
    margin-bottom: 0 !important;
}

.share-resource-name {
    font-weight: 600 !important;
    color: #1f2937 !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
}


/* ==================== 共享名片样式优化 ==================== */

/* 共享名片卡片样式 */
.shared-card {
    position: relative;
    overflow: hidden;
    animation: sharedCardFadeIn 0.5s ease;
}

@keyframes sharedCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 共享指示器样式 */
.shared-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    padding: 8px 12px;
    margin: -15px -15px 10px -15px;
    border-bottom: 1px solid rgba(255, 152, 0, 0.2);
    font-size: 12px;
    font-weight: 600;
    color: #e65100;
}

.shared-indicator i {
    margin-right: 6px;
    animation: sharedPulse 2s infinite;
}

@keyframes sharedPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.shared-status {
    flex: 1;
    text-align: center;
}

/* 权限徽章样式 */
.permission-badge {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    justify-content: center;
}

.permission-badge.read-only {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffd700;
}

.permission-badge.editable {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #28a745;
}

.permission-badge i {
    margin-right: 4px;
    font-size: 9px;
}

/* 表格中的权限徽章 */
.permission-badge-small {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
}

.permission-badge-small.read-only {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffd700;
}

.permission-badge-small.editable {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

/* 共享名片操作按钮样式 */
.shared-card .card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.shared-edit-btn,
.shared-print-btn,
.shared-export-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    color: #495057;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shared-edit-btn::before,
.shared-print-btn::before,
.shared-export-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.shared-edit-btn:hover::before,
.shared-print-btn:hover::before,
.shared-export-btn:hover::before {
    left: 100%;
}

.shared-edit-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.shared-print-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.shared-export-btn:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* 共享名片底部操作区域 */
.shared-card-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.shared-card-footer .btn {
    font-size: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.shared-card-footer .btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* 表格中的共享操作 */
.shared-table-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.shared-table-actions .btn-link {
    color: #6c757d;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.shared-table-actions .btn-link:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.1);
}

/* 共享表格行样式 */
.shared-card-row {
    border-left: 4px solid #ff9800;
    transition: all 0.3s ease;
}

.shared-card-row:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

/* 共享模式下的卡片特殊效果 */
.shared-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-top: 20px solid #ff9800;
}

.shared-card::before {
    content: '共享';
    position: absolute;
    top: 2px;
    right: 2px;
    color: white;
    font-size: 8px;
    font-weight: bold;
    z-index: 1;
    transform: rotate(45deg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 共享名片悬停效果增强 */
.shared-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 152, 0, 0.2);
}

/* 名片详情模态框样式 */
.card-detail {
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 8px;
}

.card-detail h2 {
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 24px;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.info-label {
    font-weight: 600;
    color: #374151;
    min-width: 100px;
    margin-right: 15px;
    font-size: 14px;
}

.info-value {
    color: #1f2937;
    font-size: 14px;
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .shared-card .card-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .shared-edit-btn,
    .shared-print-btn,
    .shared-export-btn {
        width: 100%;
        height: 32px;
    }
    
    .shared-table-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .permission-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* 共享模式通知栏增强 */
.shared-mode-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #fef3c7 100%) !important;
    border: 1px solid #f59e0b !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    color: #92400e !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1) !important;
    animation: slideInDown 0.5s ease !important;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shared-mode-notice i {
    font-size: 16px;
    color: #f59e0b;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* 简约共享名片卡片样式 */
.shared-card-simple {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    width: 280px;
    height: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shared-card-simple:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

/* 权限指示器 */
.shared-card-header {
    position: absolute;
    top: 12px;
    right: 12px;
}

.permission-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.permission-indicator.read-only {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.permission-indicator.editable {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #10b981;
}

/* 主要信息 */
.card-main-info {
    flex: 1;
    margin-bottom: 15px;
}

.card-name {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.card-title {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 6px 0;
    font-style: italic;
}

.card-org {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    margin: 0;
}

/* 快速联系信息 */
.card-contact-quick {
    margin-bottom: 15px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 0;
    font-size: 11px;
    color: #6b7280;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
}

.contact-item i {
    font-size: 10px;
    width: 12px;
    text-align: center;
}

/* 简约操作按钮 */
.card-actions-simple {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.action-btn {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #d1d5db;
    color: #6b7280;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn.edit-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
}

.action-btn.print-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
}

.action-btn.export-btn:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #f59e0b;
}

/* 表格视图的权限徽章 */
.table-permission-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.table-permission-badge.read-only {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.table-permission-badge.editable {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

/* 表格操作按钮简化 */
.table-actions-simple {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.table-actions-simple .btn-link {
    color: #6b7280;
    font-size: 14px;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.table-actions-simple .btn-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transform: scale(1.1);
}

/* 浮动退出按钮 */
.floating-exit-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.floating-exit-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.floating-exit-btn i {
    font-size: 16px;
}

/* 简化的共享模式通知栏 */
.shared-mode-notice-simple {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #3b82f6;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #1e40af;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    animation: slideInDown 0.5s ease;
}

.shared-mode-notice-simple .notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shared-mode-notice-simple i {
    font-size: 16px;
    color: #3b82f6;
}

.permission-text {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* 头部权限徽章 */
.shared-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.permission-badge-header {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 优化的空状态 */
.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    margin: 20px 0;
}

.empty-message i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    display: block;
}

.empty-message p {
    font-size: 16px;
    margin: 0;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .shared-card-simple {
        width: 100%;
        max-width: 320px;
        height: 300px;
        padding: 16px;
    }
    
    .card-avatar i {
        font-size: 48px;
    }
    
    .card-name {
        font-size: 18px;
    }
    
    .floating-exit-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .shared-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .permission-badge-header {
        align-self: flex-end;
    }
}


/* 表格行样式 */
.shared-card-row-simple {
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.shared-card-row-simple:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(2px);
}

.shared-card-row-simple td:first-child {
    text-align: center;
}

.shared-card-row-simple td:nth-child(2) {
    font-weight: 600;
    color: #1f2937;
}



		